.class public Lcom/netease/newsreader/util/GalleryViewItem$LearnGestureListener;
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
.source "GalleryViewItem.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/util/GalleryViewItem;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "LearnGestureListener"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/util/GalleryViewItem;


# direct methods
.method public constructor <init>(Lcom/netease/newsreader/util/GalleryViewItem;)V
    .locals 0
    .parameter

    .prologue
    .line 352
    iput-object p1, p0, Lcom/netease/newsreader/util/GalleryViewItem$LearnGestureListener;->this$0:Lcom/netease/newsreader/util/GalleryViewItem;

    invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onDoubleTap(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "e"

    .prologue
    .line 422
    const/4 v0, 0x0

    return v0
.end method

.method public onDown(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "e"

    .prologue
    .line 363
    const/4 v0, 0x0

    return v0
.end method

.method public onFling(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 1
    .parameter "e1"
    .parameter "e2"
    .parameter "velocityX"
    .parameter "velocityY"

    .prologue
    .line 371
    const/4 v0, 0x1

    return v0
.end method

.method public onLongPress(Landroid/view/MotionEvent;)V
    .locals 0
    .parameter "e"

    .prologue
    .line 381
    return-void
.end method

.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 1
    .parameter "e1"
    .parameter "e2"
    .parameter "distanceX"
    .parameter "distanceY"

    .prologue
    .line 388
    const/4 v0, 0x1

    return v0
.end method

.method public onShowPress(Landroid/view/MotionEvent;)V
    .locals 0
    .parameter "e"

    .prologue
    .line 396
    return-void
.end method

.method public onSingleTapUp(Landroid/view/MotionEvent;)Z
    .locals 6
    .parameter "e"

    .prologue
    const/4 v5, 0x1

    .line 402
    iget-object v3, p0, Lcom/netease/newsreader/util/GalleryViewItem$LearnGestureListener;->this$0:Lcom/netease/newsreader/util/GalleryViewItem;

    invoke-static {v3}, Lcom/netease/newsreader/util/GalleryViewItem;->access$2(Lcom/netease/newsreader/util/GalleryViewItem;)Ljava/util/Map;

    move-result-object v3

    const-string v4, "docid"

    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 403
    .local v1, docid:Ljava/lang/String;
    if-eqz v1, :cond_0

    const-string v3, ""

    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 404
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lcom/netease/newsreader/util/GalleryViewItem$LearnGestureListener;->this$0:Lcom/netease/newsreader/util/GalleryViewItem;

    invoke-static {v3}, Lcom/netease/newsreader/util/GalleryViewItem;->access$0(Lcom/netease/newsreader/util/GalleryViewItem;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/netease/newsreader/activity/DetailPage;

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 405
    .local v2, itemintent:Landroid/content/Intent;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 406
    .local v0, b:Landroid/os/Bundle;
    const-string v3, "docid"

    invoke-virtual {v0, v3, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 407
    const-string v3, "tid"

    const-string v4, ""

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 408
    const-string v3, "position"

    const-string v4, "0"

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 409
    const-string v3, "headLine"

    const/4 v4, 0x0

    invoke-virtual {v0, v3, v4}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 410
    const-string v3, "isCollect"

    invoke-virtual {v0, v3, v5}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 411
    invoke-virtual {v2, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 412
    iget-object v3, p0, Lcom/netease/newsreader/util/GalleryViewItem$LearnGestureListener;->this$0:Lcom/netease/newsreader/util/GalleryViewItem;

    invoke-static {v3}, Lcom/netease/newsreader/util/GalleryViewItem;->access$0(Lcom/netease/newsreader/util/GalleryViewItem;)Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 414
    .end local v0           #b:Landroid/os/Bundle;
    .end local v2           #itemintent:Landroid/content/Intent;
    :cond_0
    return v5
.end method
